<?php /* Smarty version Smarty-3.1.6, created on 2018-01-10 15:42:59
         compiled from "D:/wamp/www/myshop/Admin/View\Manager\showlist.html" */ ?>
<?php /*%%SmartyHeaderCode:203755a531980eaffc3-90896672%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '7d08547101a4475e52a47436d7f9def2e33b6c08' => 
    array (
      0 => 'D:/wamp/www/myshop/Admin/View\\Manager\\showlist.html',
      1 => 1515570172,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '203755a531980eaffc3-90896672',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.6',
  'unifunc' => 'content_5a53198111604',
  'variables' => 
  array (
    'info' => 0,
    'v' => 0,
    'roles' => 0,
    'vv' => 0,
    'total' => 0,
    'pagelist' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5a53198111604')) {function content_5a53198111604($_smarty_tpl) {?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>网站后台管理系统HTML模板--模板之家 www.cssmoban.com</title>
<link href="<?php echo @ADMIN_CSS_PATH;?>
style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?php echo @ADMIN_JS_PATH;?>
jquery.js"></script>

<script type="text/javascript">
$(document).ready(function(){
  $(".click").click(function(){
  $(".tip").fadeIn(200);
  });
  
  $(".tiptop a").click(function(){
  $(".tip").fadeOut(200);
});

  $(".sure").click(function(){
  $(".tip").fadeOut(100);
});

  $(".cancel").click(function(){
  $(".tip").fadeOut(100);
});

});
function change(role){
	//alert("id="+role.id+"&role="+role.value);
	$.post("<?php echo @__MODULE__;?>
/Role/updaterole",{ id: role.id, role: role.value },function(msg){
		//alert(msg);
	if(msg!="失败"){
//			$("#roleid").html(msg);
//			$("#rolename").html(role.value);
//		$("#result").html("修改角色成功");
			$('#'+role.id).parent().prev().prev().html(msg);
			$('#'+role.id).parent().prev().html(role.value);
			$("#result").html("修改角色成功");
	}else{
		$("#result").html("修改角色"+msg);
	}
  $(".tip").fadeIn(200);
  
	});
}
function del(){ 
if(!confirm("确认要删除？")){ 
window.event.returnValue = false; 
} 
}
</script>


</head>


<body>

	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="<?php echo @__MODULE__;?>
/Index/main">首页</a></li>
    <li>权限管理</li>
    <li>管理员列表</li>
    </ul>
    </div>
    
    <div class="rightinfo">
    
    <div class="tools">
    
    	<ul class="toolbar">
        <li><a href="<?php echo @__CONTROLLER__;?>
/addmanager"><span><img src="<?php echo @ADMIN_IMAGES_PATH;?>
t01.png" /></span>添加</a></li>
        <li class="click"><span><img src="<?php echo @ADMIN_IMAGES_PATH;?>
t02.png" /></span>修改</li>
        <li><span><img src="<?php echo @ADMIN_IMAGES_PATH;?>
t03.png" /></span>删除</li>
        <li><span><img src="<?php echo @ADMIN_IMAGES_PATH;?>
t04.png" /></span>统计</li>
        </ul>
        
        
        <ul class="toolbar1">
        <li><span><img src="<?php echo @ADMIN_IMAGES_PATH;?>
t05.png" /></span>设置</li>
        </ul>
    
    </div>
    
    
    <table class="tablelist">
    	<thead>
    	<tr>
        <th><input name="" type="checkbox" value="" checked="checked"/></th>
        <th>编号<i class="sort"><img src="<?php echo @ADMIN_IMAGES_PATH;?>
px.gif" /></i></th>
        <th>姓名</th>
        <th>创建时间</th>
        <th>最后一次登陆</th>
        <th>角色编号</th>
        <th>角色名称</th>
        <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['info']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value){
$_smarty_tpl->tpl_vars['v']->_loop = true;
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['v']->key;
?>
        <tr>
        <td><input name="" type="checkbox" value="" /></td>
        <td><?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
</td>
        <td><?php echo $_smarty_tpl->tpl_vars['v']->value['name'];?>
</td>
        <td><?php echo $_smarty_tpl->tpl_vars['v']->value['creattime'];?>
</td>
        <td><?php echo $_smarty_tpl->tpl_vars['v']->value['loginouttime'];?>
</td>
        <td id="roleid"><?php echo $_smarty_tpl->tpl_vars['v']->value['roleid'];?>
</td>
        <td id="rolename"><?php echo $_smarty_tpl->tpl_vars['v']->value['rolename'];?>
</td>
        <td><select class="select1" onchange="change(this)"  id="<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
">
					    <?php  $_smarty_tpl->tpl_vars['vv'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['vv']->_loop = false;
 $_smarty_tpl->tpl_vars['kk'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['roles']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['vv']->key => $_smarty_tpl->tpl_vars['vv']->value){
$_smarty_tpl->tpl_vars['vv']->_loop = true;
 $_smarty_tpl->tpl_vars['kk']->value = $_smarty_tpl->tpl_vars['vv']->key;
?>
					    <option <?php if ($_smarty_tpl->tpl_vars['vv']->value['name']==$_smarty_tpl->tpl_vars['v']->value['rolename']){?>selected="selected"<?php }?> ><?php echo $_smarty_tpl->tpl_vars['vv']->value['name'];?>
</option>
					    <?php } ?>
					  </select>
       			<a href="<?php echo @__CONTROLLER__;?>
/deletemanager/id/<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
" class="tablelink" onclick="return del()"> 删除角色</a></td>
        </tr> 
        <?php } ?>
        </tbody>
    </table>
    
   
    <div class="pagin">
    	<div class="message">共<i class="blue"><?php echo $_smarty_tpl->tpl_vars['total']->value;?>
</i>条记录，每页显示&nbsp;<i class="blue">10&nbsp;</i>条</div>
        <ul class="paginList">
        <?php echo $_smarty_tpl->tpl_vars['pagelist']->value;?>

        </ul>
    </div>
    
    
    <!--<div class="tip">
    	<div class="tiptop"><span>提示信息</span><a></a></div>
        
      <div class="tipinfo">
        <span><img src="<?php echo @ADMIN_IMAGES_PATH;?>
ticon.png" /></span>
        <div class="tipright">
        <p>是否确认对信息的修改 ？</p>
        <cite>如果是请点击确定按钮 ，否则请点取消。</cite>
        </div>
        </div>
        
        <div class="tipbtn">
        <input name="" type="button"  class="sure" value="确定" />&nbsp;
        <input name="" type="button"  class="cancel" value="取消" />
        </div>
    
    </div>-->
    
    <div class="tip">
    	<div class="tiptop"><span>提示信息</span><a></a></div>
        
      <div class="tipinfo">
        <span><img src="<?php echo @ADMIN_IMAGES_PATH;?>
ticon.png" /></span>
        <div class="tipright">
        <p>系统提示</p>
        <cite id="result"></cite>
        </div>
        </div>
        
        <div class="tipbtn">
        <input name="" type="button"  class="sure" value="确定" />&nbsp;
        <input name="" type="button"  class="cancel" value="取消" />
        </div>
    
    </div>
    
    
    </div>
    
    <script type="text/javascript">
	$('.tablelist tbody tr:odd').addClass('odd');
	</script>
</body>
</html>
<?php }} ?>